@import 'layout.css';

page {
	font-weight: 400;
	font-size: 24rpx;
	height: 100%;
}

/* 盒子模型 */
page,
block,
view,
scroll-view,
swiper,
movable-view,
icon,
text,
progress,
button,
checkbox,
form,
input,
label,
picker,
picker-view,
radio,
slider,
switch,
textarea,
navigator,
audio,
image,
video,
map,
canvas,
contact-button {
	box-sizing: border-box;
}

video::-internal-media-controls-download-button {
	display: none;
}

video::-webkit-media-controls-enclosure {
	overflow: hidden;
}

/* #ifdef H5 */
image {
	background: none !important;
}

/* #endif */

.tc {
	text-align: center;
}

/* 主色 */
.theme_color {
	background: #607AC5;
}


/* 去除button样式 */
button {
	border-radius: unset;
	margin: unset;
	padding: unset;
	line-height: unset;
	border: unset;
	background-color: unset;
}

button::after {
	border: unset;
}

/* 相对定位 */
.pr {
	position: relative;
}

/* 绝对定位 */
.pa {
	position: absolute;
}

.ps {
	position: sticky;
	top: 0;
}

/* 绝对居中 */
.center-pa {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/************  flex *****************/
/* 水平居中 */
.inline_flex {
	display: inline-flex;
}

.flex {
	display: flex;
}

.flex_y {
	display: flex;
	align-items: center;
}

.flex_x {
	display: flex;
	justify-content: center;
}

.fce {
	display: flex;
	justify-content: center;
	align-items: flex-end;
}

.fe {
	display: flex;
	align-items: flex-end;
}

/* 等距居中对齐 子元素居中 */
.fac {
	display: flex;
	justify-content: space-around;
	align-items: center;
}

/* 两边对齐 子元素居中 */
.fsc {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* 换行 */
.flw {
	display: flex;
	flex-wrap: wrap;
}

/* 居中对齐 子元素居中 */
.fjc {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* 从左到右排序 子元素居中 */
.fcs {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

/* 垂直居中对齐 */
.fcc {
	display: flex;
	align-items: center;
	flex-direction: column;
}

.fce {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.fd {
	display: flex;
	flex-direction: column;
}

.fdsb {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}


.fg0 {
	min-width: 0;
	-webkit-box-flex: 0;
	-ms-flex-positive: 0;
	flex-grow: 0;
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

.fg1 {
	min-width: 0;
	-webkit-box-flex: 1;
	-ms-flex-positive: 1;
	flex-grow: 1;
	-ms-flex-negative: 1;
	flex-shrink: 1;
}

.flex1 {
	flex: 1;
}

/* felx **** end */
image {
	width: 100%;
	display: block;
	height: 100%;
}

/*一行出现省略号 */
.ellipsis {
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	-ms-text-overflow: ellipsis;
	-o-text-overflow: ellipsis;
	white-space: nowrap;
}

.ellipsis-1 {
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	word-break: break-all;
	/* white-space: nowrap; */
}

/*两行出现省略号 */
.ellipsis-2 {
	font-size: 26rpx;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
	height: auto;
}

/*三行出现省略号 */
.ellipsis-3 {
	font-size: 26rpx;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
	height: auto;
}

/* 删除线字体 */
.tdlt {
	text-decoration: line-through;
}

/* 商品卡片阴影 */
.shadow {
	position: relative;
}

.shadow::after {
	position: relative;
	width: 90%;
	height: 5rpx;
	z-index: -1;
	content: "";
	display: block;
	margin: 0 auto;
	background: rgba(206, 206, 206, 1);
	border-radius: 8px 8px 8px 0px;
	opacity: 1;
	filter: blur(12rpx);
}

/* 横向可滚动 */
.scroll_x_view {
	width: 100%;
	overflow: hidden;
	overflow-x: scroll;
}


/* 底部home小黑条padding */
.iphoneXBottom {
	box-sizing: content-box;
	padding-bottom: constant(safe-area-inset-bottom);
	/*兼容 iOS<11.2*/
	padding-bottom: env(safe-area-inset-bottom);
	/*兼容 iOS>11.2*/
	background-color: #FFFFFF;
}

.ios-bottom {
	padding-bottom: constant(safe-area-inset-bottom);
	/*兼容 iOS<11.2*/
	padding-bottom: env(safe-area-inset-bottom);
	box-sizing: content-box;
}

/* 弹框 */
.popup {
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100vh;
	z-index: 999;
}

.popup .popup_bj {
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	animation: showbj 0.2s linear forwards;
}

.popup .popup_box {
	position: fixed;
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
	min-height: 400rpx;
	border-top-left-radius: 10rpx;
	border-top-right-radius: 10rpx;
	animation: showbj 0.2s linear forwards;
}

@keyframes showbj {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}